import { createStore } from "vuex";

export default createStore({
  state: {
    goodslist: [] as any[],
    nums: 0
  },
  getters: {},
  mutations: {
    addgoods(state, arr) {
      state.goodslist.push(arr)
    },
    numsall(state, num) {
      state.nums += num
    }
  },
  actions: {

  },
  modules: {},
});
